package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface NursingProjectMapper {
    /**
     * 根据条件分页查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingProjectVo> list(@Param("name") String name,
                                @Param("status") Byte status);

    void save(NursingProject nursingProject);

    @Select("select * from nursing_project where id = #{id}")
    NursingProject queryById(Long id);

    void update(NursingProject nursingProject);
}
